package com.haiyan.demo.problem02;

public class LaoZhang {
    private String name;
    private String sex;
    private int age;
    private String address;

    public LaoZhang() {
    }

    public LaoZhang(String name, String sex, int age, String address) {
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public void getMoney()
    {
        System.out.println("种地养家");
    }
}
